package com.xc.file.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>上传大文件返回参数</p>
 *
 * @author xc
 * @version v1.0.0
 */
@Data
public class UploadDto {

    @ApiModelProperty(value = "文件续传索引")
    private Long fileIndex;

    @ApiModelProperty(value = "文件hash值")
    private String hashCode;

    @ApiModelProperty(value = "上传地址")
    private String uploadUrl;

    @ApiModelProperty(value = "是否完成,true:完成,false:未完成")
    private Boolean finish = false;

    @ApiModelProperty(value = "是否是秒传,true:是,false:不是")
    private boolean fastFinish = false;

    @ApiModelProperty(value = "每次上传文件大小")
    private Long renewalSize;

    @ApiModelProperty(value = "下载文件需要的id请妥善保管")
    private String fid;

    public UploadDto() {
    }

    public UploadDto(Long renewalSize) {
        this.renewalSize = renewalSize;
    }
}
